

import requests


def download(url,filepath):
    #header = {"Authorization": "Bearer " + api_token}
    r = requests.get(url, headers="", stream=True)
    print(r.status_code) # 
    if r.status_code == 200:
        open(filepath, 'wb').write(r.content) # 
        print("done")
    del r

def gethtml(url):
	r = requests.get(url, headers="", stream=True)
	#r.encoding='utf-8'
	#bs=BeautifulSoup(r.text,'lxml')
	return r.text




